#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>
#include <QVBoxLayout>
#include "assetmgrform.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    //ui->setStyleSheet("background-image: (url:/images/main_bg)");
    this->initForm();
}

void MainWindow::initForm(){
   connect(ui->pushButton,SIGNAL(clicked()),this,SLOT(btn1Clicked()));

}

MainWindow::~MainWindow()
{
    delete ui;
}
void MainWindow::btn1Clicked(){
    AssetMgrForm* form = new AssetMgrForm(this);
    QVBoxLayout *layout = new QVBoxLayout( ui->frame_2 );
    layout->addWidget( form );
}
